package com.ljh.mybatis.controller;

import com.ljh.mybatis.entity.Student;
import com.ljh.mybatis.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @auth 刘佳浩
 * @create 2020-11-18-21:45
 */
@RestController
public class StudentController {
    @Autowired
    private StudentService studentService;
    //多对一
    @GetMapping("getStuTea")
    public List<Student> getStuTea(){
        return studentService.getStuTea();
    }
}
